<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改请购单')" />
    <th:block th:include="include :: datetimepicker-css" />
    <style>
        .danwei {
            position: absolute;
            left: 610px;
            top: 6px;
            font-size: 14px;
        }
        .form-group {
            position: relative;
        }
        .is-required::after {
            content: "*";
            color: red;
            margin-left: 5px;
        }
    </style>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-request-edit" th:object="${orderRequest}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">订单编号：</label>
                    <div class="col-sm-8">
                        <input name="orderId" th:field="*{orderId}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">品名：</label>
                    <div class="col-sm-8">
                        <input name="productName" th:field="*{productName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">订单量：</label>
                    <div class="col-sm-8">
                        <input name="orderQuantity" th:field="*{orderQuantity}" class="form-control" type="text">
                    </div>
                    <label class="danwei">张</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">楞型：</label>
                    <div class="col-sm-8">
                        <input name="fluteType" th:field="*{fluteType}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">层数：</label>
                    <div class="col-sm-8">
                        <input name="layerCount" th:field="*{layerCount}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">材质代码：</label>
                    <div class="col-sm-8">
                        <input name="materialCode" th:field="*{materialCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">规格：</label>
                    <div class="col-sm-8">
                        <input name="specs" th:field="*{specs}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">纸板长度：</label>
                    <div class="col-sm-8">
                        <input name="sizeLength" th:field="*{sizeLength}" class="form-control" type="text">
                    </div>
                    <label class="danwei">mm</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">纸板宽度：</label>
                    <div class="col-sm-8">
                        <input name="sizeWidth" th:field="*{sizeWidth}" class="form-control" type="text">
                    </div>
                    <label class="danwei">mm</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">压线：</label>
                    <div class="col-sm-8">
                        <input name="scoringLine" th:field="*{scoringLine}" class="form-control" type="text">
                    </div>
                    <label class="danwei">mm</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">面积：</label>
                    <div class="col-sm-8">
                        <input name="area" th:field="*{area}" class="form-control" type="text">
                    </div>
                    <label class="danwei">m²</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">材质描述：</label>
                    <div class="col-sm-8">
                        <input name="materialDesc" th:field="*{materialDesc}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">抗压/kg：</label>
                    <div class="col-sm-8">
                        <input name="crushStrength" th:field="*{crushStrength}" class="form-control" type="text">
                    </div>
                    <label class="danwei">kg</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">边压/N：</label>
                    <div class="col-sm-8">
                        <input name="edgeCrush" th:field="*{edgeCrush}" class="form-control" type="text">
                    </div>
                    <label class="danwei">N</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">耐破kpa：</label>
                    <div class="col-sm-8">
                        <input name="burstStrength" th:field="*{burstStrength}" class="form-control" type="text">
                    </div>
                    <label class="danwei">kpa</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">外购纸板价格：</label>
                    <div class="col-sm-8">
                        <input name="unitPrice" th:field="*{unitPrice}" class="form-control" type="text">
                    </div>
                    <label class="danwei">元/张</label>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">厂家地址：</label>
                    <div class="col-sm-8">
                        <input name="factoryAddress" th:field="*{factoryAddress}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">业务员：</label>
                    <div class="col-sm-8">
                        <input name="salesman" th:field="*{salesman}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">业务经理：</label>
                    <div class="col-sm-8">
                        <input name="salesManager" th:field="*{salesManager}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">审核人：</label>
                    <div class="col-sm-8">
                        <input name="approver" th:field="*{approver}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "cardbox/request";
        $("#form-request-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-request-edit').serialize());
            }
        }
    </script>
</body>
</html>